import StartPanel from "./StartPanel";
import GameManager from "../Manager/GameManager";

const {ccclass, property} = cc._decorator;

@ccclass
export default class LoadingPanel extends cc.Component {
    public static Instance:LoadingPanel;

    @property(cc.Button)
    Button_L:cc.Button = null;


    onLoad () {
        LoadingPanel.Instance = this;
    }

    ShowOn()
    {
        this.node.active = true;
    }
    
    ShowOff()
    {
        this.node.active = false;
    }

    start () {
        // GameManager.Instance.scheduleOnce(function(){
        //     LoadingPanel.Instance.ShowOff();
        //     StartPanel.Instance.ShowOn();
        // }, 0.2);
    }

    
}
